/*********************************************************************
* File: coin.h
* Create Coin
* Author: 10520418 Bui Huu Hiep
**********************************************************************/
#pragma once
#ifndef _COIN_H
#define _COIN_H

#include "GameObject.h"

// Set lai
#define COIN_VY 1100

/********************************************
* Coin
* Inheritance form class Obj
* Create Coin
********************************************/
class Coin : public GameObject
{
private:
	float		_old_y;
	bool		_in_brick;
public:
	Coin(float posX, float posY, float width, float height, Resources* res, int number, int depth);
	~Coin(void);

	void Update(float time, QNode* &Tree);
	void Render(LPD3DXSPRITE spriteHandler, Viewport* viewport);
	void ChangeState(char state);
	void UpdateAnimation(float time);
};
#endif

